// #ifndef VUE3
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
// #endif

// #ifdef VUE3
import { createStore } from 'vuex'
const store = createStore({
// #endif
	state: {
		is_logining: false,
		hasLogin: false,
		userInfo: {},
		mapKey: '3UABZ-Y6U6L-DBUPM-EIPYF-2HFLH-HQF5R',
	},
	mutations: {
		is_logining(state, res) {
			state.is_logining = res;
		},
		login(state) {
			state.hasLogin = true;
		},
		logout(state) {
			state.hasLogin = false
		},
		setUserInfo(state, userinfo) {
			state.userInfo = userinfo
		},
	},
	getters: {
		
	},
	actions: {
		
	}
})

export default store
